<?php


namespace app\api\model\integral;

use app\common\model\OrderGoods as OrderGoodsModel;

class OrderGoods extends OrderGoodsModel
{
    public static function getOrderIds($user_id, $goods_id)
    {
        return self::where('user_id', $user_id)->where('goods_id', $goods_id)->column('order_id');
    }
}